﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MedicalLog.Domain.Entities.Doctor>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Registrar de Doctor
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="header">
        <h4>
            Registrar un Doctor</h4>
    </div>
    <div class="main">
        <% using (Html.BeginForm())
           {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset class="main-style">
            <table>
                <tr>
                    <td class="editor-label">
                        Nombre:
                    </td>
                    <td class="editor-field">
                        <%: Html.TextBoxFor(model => model.Name) %>
                        <%: Html.ValidationMessageFor(model => model.Name) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Apellido:
                    </td>
                    <td class="editor-field">
                        <%: Html.TextBoxFor(model => model.LastName) %>
                        <%: Html.ValidationMessageFor(model => model.LastName) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Teléfono:
                    </td>
                    <td class="editor-field">
                        <%: Html.TextBoxFor(model => model.Telephone) %>
                        <%: Html.ValidationMessageFor(model => model.Telephone) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Móvil:
                    </td>
                    <td class="editor-field">
                        <%: Html.TextBoxFor(model => model.Celphone) %>
                        <%: Html.ValidationMessageFor(model => model.Celphone) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        Dirección:
                    </td>
                    <td class="editor-field">
                        <%: Html.TextBoxFor(model => model.Address) %>
                        <%: Html.ValidationMessageFor(model => model.Address) %>
                    </td>
                </tr>
                <tr>
                    <td class="editor-label">
                        E-mail:
                    </td>
                    <td>
                        <%: Html.TextBoxFor(model => model.Email) %>
                        <%: Html.ValidationMessageFor(model => model.Email) %>
                    </td>
                </tr>
            </table>
            <div id="login-Doctor" class="login-doctor-ui">
                <h4>
                    Agregar Login del Doctor</h4>
                <table>
                    <tr>
                        <td class="editor-label">
                            Usuario:
                        </td>
                        <td class="editor-field">
                            <%: Html.TextBoxFor(model => model.Username) %>
                            <%: Html.ValidationMessageFor(model => model.Username) %>
                        </td>
                    </tr>
                    <tr>
                        <td class="editor-label">
                            Clave:
                        </td>
                        <td class="editor-field">
                            <%: Html.PasswordFor(model => model.Passsword) %>
                            <%: Html.ValidationMessageFor(model => model.Passsword)%>
                        </td>
                    </tr>
                </table>
            </div>
        </fieldset>
    </div>
    <div class="footer">
        <h4>
            Acciones
        </h4>
        <fieldset class="main-style2">
            <p>
                <input type="submit" value="Agregar doctor" />
            </p>
            <%: Html.ActionLink("Regresar a la página principal", "SearchPatient","Patient") %>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
